Robert's File Server (RFS) is an AppleScript (v1.00) for Eudora Pro. It takes a message as input (à la BART "mac@mac.archive.umich.edu") to send files automaticaly using Eudora's facilities, I'm using it within a UUPC setup, so I'm free to have as many userIDs I want, but it sould be easy to modify the script to work within another kind of setup.
I included an older version with the archive wich work with Eudora 1.4.2, my old Mac Plus didn't like at all newer versions.
The only setup it require to run is to define few parameters in the script itself, and then save it as an Applet.
I usually launch it using crond for Macintosh, at specific times. Actually it run every hour for about a week without any crash.
Settings
The only settings you have to setup are a few pathnames, mailboxes names and sysop name…
Setting the files and folder: "eudoraSettings" is the pathname of the Eudora Settings files you use for the file-server. "pubdir" is the root level of the files you want to make available to anybody (It's a folder, terminate its name with ":"). "IndexFile" is your files list sent when the user put the word "index" in its message.
set eudoraSettings to {alias "yourpath"}
set pubdir to "yourpath:" -- the folder whare the files are
set indexFile to {alias "yourpath"} -- the files list
Setting the mailboxes: as the localised versions of Eudora use names differents than "In", "Out" and "Trash" folder it is necessary to identify them correctly. I use a mailbox that I created to place all the messages after they are processed. I trash them manually after checking them. The mailbox "formsMailbox" is used to store the "help" and "aide" texts. Thoses texts are placed in a message, then saved without any receipient and moved to this mailbox. RFS grab the body of those forms and paste it the the outgoing message. The field "Subject:" must contains the word "help" and "aide", RFS locate the message by looking at this field.
set inMailbox to "In" -- the name of the incomming mailbox
set trashMailbox to "Trash or anything else" -- the name of the trash mailbox we want to use
set outMailbox to "Out" -- the name of the outgoing messages
set formsMailbox to "Forms" -- the name of our forms mailbox
Finally, the "sysop" address will be use to send Bcc of all errors messages, set it to "" if you don't want any.
set sysop to "userID" -- who will get the Bcc of error reports if any
Starting with version 1.10, I have to run the script on my Mac IIvx (I sold my Plus...) so, I don't want it to eject me out my messages reading (specially when I receive e-mail from satisfacted users) . I add the following instructions at the beginning of the script.
-- First check if Eudora is already running. If so, exit with a nice beep.
-- I don't want the script to throw me out my messages reading when I'm
-- using Eudora. This part of the script requires the GTQ Scripting Library's
-- "Is Application Running" scripting addition.
if (is application running "Eudora Pro") then
beep
return
end if
It's self explanatory,if you don't wnat this feature, simply comment it out.
Remember that the script does nothing with the mail itself, you have to setup Eudora to handle the mail in a way it will suit your needs. (i.e. mail attachment always as Mac documents, including signature, etc.)
To know more about the commands read the "rfs-help.txt" file. (or "rfs-aide.txt" for the french version). The script shouldn't be hard to understand for somebody who already use AppleScript. I'll be interested in knowing about improvements you will certainly put in, as weel as geting copies of any version written for diffenents versions.
Robert's File Server is freeware. Feel free to distribute it as you whish, as long as you give proper credits.
You can reach me at:
Robert Pellerin
<robert@RP.CAM.ORG> (prefered)
<robert@nyongwa.montreal.qc.ca> (alternate)
A working setup is available at: <file-server@RP.CAM.ORG>